home *** CD-ROM | disk | FTP | other *** search
- Path: news.mindspring.com!usenet
- From: wdnick@mindspring.com (William "Doug" Nicholson)
- Newsgroups: comp.lang.c++
- Subject: Stopping a program with a password or ESC???
- Date: Tue, 02 Apr 1996 03:18:39 GMT
- Organization: MindSpring Enterprises
- Message-ID: <4jprhm$uca@mule1.mindspring.com>
- Reply-To: wdnick@mindspring.com
- NNTP-Posting-Host: wdnick.mindspring.com
- X-Newsreader: Forte Free Agent 1.0.82
-
- I've written a program that controls a linear motion table and several
- input and output devices. However, there's no way of exiting it
- without CTL-ALT-DEL ing out of it. How can I make it so that when I
- press ESC at any point in the program it will exit?? This would be
- great for starters. However, in the future I might want to make it so
- that a specific sequence of key presses exits the program. But the
- catch is that I wouldn't want the program to halt as each key was
- pressed. For instance, a person would have to type "end" all at once
- without significant pauses for the program to exit, otherwise it would
- keep running like normal.
-
- Any ideas?? Primarily on my first question, once I get the ESC
- figured out I'll worry about the 'password' bit.
-
- Thanks in advance.
-
-
- Doug Nicholson wdnick@mindspring.com
- Mechanical Engineering Student
- Southern College of Technology "It is what you make it."
- http://www.mindspring.com/~wdnick/resume.html
-
-